package com.examine.action;

import com.examine.bean.User;
import com.examine.serviceImpl.UserServiceImpl;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.ServletActionContext;

import javax.servlet.http.HttpSession;
import java.util.List;

public class CommunalAction extends ActionSupport {

    public String login(){
        return "success";
    }

    public String forgetPassword(){
        return "success";
    }

    public String admin(){
        try {
            HttpSession session = ServletActionContext.getRequest().getSession(true);
            session.setAttribute("user_leve", "0");
        }catch (Exception e) {
            e.printStackTrace();
        }
        return "success";
    }

    public String teacher(){
        try {
            HttpSession session = ServletActionContext.getRequest().getSession(true);
            session.setAttribute("user_leve", "1");
        }catch (Exception e) {
            e.printStackTrace();
        }
        return "success";
    }

    public String user(){
        try {
            HttpSession session = ServletActionContext.getRequest().getSession(true);
            session.setAttribute("user_leve", "2");
        }catch (Exception e) {
            e.printStackTrace();
        }
        return "success";
    }

    public String college(){
        try {
            HttpSession session = ServletActionContext.getRequest().getSession(true);
            session.setAttribute("user_leve", "3");
        }catch (Exception e) {
            e.printStackTrace();
        }
        return "success";
    }

    public String school(){
        try {
            HttpSession session = ServletActionContext.getRequest().getSession(true);
            session.setAttribute("user_leve", "4");
        }catch (Exception e) {
            e.printStackTrace();
        }
        return "success";
    }

    public String doorkeeper(){
        try {
            HttpSession session = ServletActionContext.getRequest().getSession(true);
            session.setAttribute("user_leve", "5");
        }catch (Exception e) {
            e.printStackTrace();
        }
        return "success";
    }

    public String error(){
        return "error";
    }

    public String adminStrationManagement(){
        return "success";
    }

    public String addStudentUsers(){
        return "success";
    }

    public String addTeacherUsers(){
        return "success";
    }

    public String addCollegeUsers(){
        return "success";
    }

    public String addSchoolUsers(){
        return "success";
    }

    public String addDoorkeeperUsers(){
        return "success";
    }

    public String addAdminUsers(){
        return "success";
    }

    public String adminUpdateUsers(){
        return "success";
    }

    public String changePassword(){
        return "success";
    }

    public String personalData(){
        return "success";
    }

    public String assistance(){
        return "success";
    }

    public String template(){
        return "success";
    }

    public String applicationCampusAccess(){
        return "success";
    }

    public String teacherApplicationCampusAccess(){
        return "success";
    }

    public String myApplication(){
        return "success";
    }

    public String myTeacherApplication(){
        return "success";
    }

    public String myTeacherSponsorApplication(){
        return "success";
    }

    public String myCollegeApplication(){
        return "success";
    }

    public String mySchoolApplication(){
        return "success";
    }

    public String myDoorkeeperApplication(){
        return "success";
    }

    public String doorkeeperCheckACA(){
        return "success";
    }

    public String doorkeeperCheckTeacherACA(){
        return "success";
    }

    public String updateApplicationCampusAccess(){
        return "success";
    }

    public String updateTeacherACA(){
        return "success";
    }

    public String updateCollegeACA(){
        return "success";
    }

    public String updateSchoolACA(){
        return "success";
    }

    public String updateTeacherAplicCampAces(){
        return "success";
    }

    public String updateTeacherCollegeACA(){
        return "success";
    }

    public String updateTeacherSchoolACA(){
        return "success";
    }

    public String adminLatestNews(){
        return "success";
    }

    public String andminAllLatestNews(){
        return "success";
    }

    public String latestNews(){
        return "success";
    }

    public String advisoryDetails(){
        return "success";
    }

    public String myMessagePush(){
        return "success";
    }


}

